package com.lnsf.bookstore.system.user.dao;

import com.lnsf.bookstore.common.dao.BaseDao;
import com.lnsf.bookstore.system.user.vo.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseDao<User>{
    /*
   * 额外加的
   */
    User getUserByName(String username);

    User getUserByName_roleAndPer(String username);

    User getUserByPhone(String phone);

    int updatePassword(Map<String, Object> map);

    List<User> selectAllAdmin(Map<String, Object> map);

    int deleteBatch(Object[] id);
}